package com.bjpowernode.java.domain;

public class Test {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setLength(12);
        rectangle.setWidth(10);
        Triangle triangle = new Triangle();
        triangle.setSide(6);
        System.out.println(rectangle.returnArea()-triangle.returnArea());
    }
}
